local proxy = ngx.shared.proxies:get(ngx.var.http_host)
ngx.log(ngx.DEBUG, 'host: ', ngx.var.http_host, 'proxy: ', proxy)
if proxy then
    return proxy
else
    return ngx.var.http_host
end